<template>
  <div class="itemList">
    <div v-for="(i, idx) in list" :key="idx">
      <item :data="i" />
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import Item from "@/components/item.vue";

@Component({
  components: {
    Item,
  },
})
export default class Home extends Vue {
  private list: Array<object> = [
    {
      title: "这是一份简历",
      createdTime: "2021/09/01",
      content: "能通过富文本编辑器和markdown展示自己的技能和经历",
      publishTime: "2021/09/02",
      publisher: "xx",
    },
    {
      title: "这是一个技术分享",
      createdTime: "2021/09/01",
      content: "可以分享自己的技术感想",
      publishTime: "2021/09/02",
      publisher: "xx",
    },
    {
      title: "dd",
      createdTime: "2021/09/01",
      content: "test",
      publishTime: "2021/09/02",
      publisher: "xx",
    },
  ];
}
</script>

<style lang="scss" scoped>
.itemList {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 5px 10px;
    & > div {
        width: 300px;
    }
}
</style>